﻿@model S4Store.Domain.Information
@{
    ViewBag.Title = "Add";
    Layout = null;
}
<form class="pageForm addpage" action="@Url.Action("ModifyBack")" method="post">
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
		<div class="pageFormContent" style="overflow: auto;" ratio="*">
            <table style="width:100%">
                <tr>
                    <td>类型： <select name="TypeValue">
                                   <option @if(Model.Type== S4Store.Domain.Information.InformationType.Sale){<text>selected="selected"</text>} value="@S4Store.Domain.Information.InformationType.Sale.ToInt()">@S4Store.Domain.Information.InformationType.Sale.GetDescription()</option>
                                   <option @if (Model.Type == S4Store.Domain.Information.InformationType.AfterSale)
                                           {<text>selected="selected"</text>} value="@S4Store.Domain.Information.InformationType.AfterSale.ToInt()">@S4Store.Domain.Information.InformationType.AfterSale.GetDescription()</option>
                                   <option @if (Model.Type == S4Store.Domain.Information.InformationType.Marketing)
                                           {<text>selected="selected"</text>} value="@S4Store.Domain.Information.InformationType.Marketing.ToInt()">@S4Store.Domain.Information.InformationType.Marketing.GetDescription()</option>
                               </select></td>
                </tr>
                <tr>
                    <td>标题： <input type="text" name="Title" style="width:400px" value="@Model.Title" /><input type="hidden" name="Id" value="@Model.Id" /></td>
                </tr>
                <tr>
                    <td >资料内容：</td>
                </tr>  
                <tr>
                    <td >
                    <textarea name="Content" style="width:100%; height:300px" class="editor" upLinkUrl="/Upload" upLinkExt="zip,rar,txt,doc,docx,xls,xlsx,ppt" 
								upImgUrl="/Upload" upImgExt="jpg,jpeg,gif,png" 
								upFlashUrl="/Upload" upFlashExt="swf"
								upMediaUrl="/Upload" upMediaExt="avi">@Model.Content</textarea>                    
                    
                    </td>
                </tr> 
            </table>
			
		</div>
		<div class="formBar" ratio="#30">
			<ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
			</ul>
		</div>
</div>
</form>

